package com.ftg.learn.order.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ftg.learn.order.entity.OrderDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "下单时传递的数据模型")
public class OrderDto {
    @Schema(description = "用户id")
    Long userId;
    @Schema(description = "支付方式")
    String payType;
    @Schema(description = "手机号")
    String phone;
    @Schema(description = "订单金额")
    BigDecimal amount;
    @Schema(description = "商品详情")
    List<OrderDetail> orderDetails;
}
